import React, {useEffect} from 'react';
import {useNavigate} from "react-router-dom";
import { Result} from "antd";

const PaySuccess = () => {
    const nav=useNavigate()
    useEffect(() => {
        setTimeout(() => {
            nav('/my-course')
        },3000)
    },[])
    return (
        <div>
            <Result
                status="success"
                title="支付已经成功！"
                subTitle="3秒后跳转到课程中心查看购买记录，请等待..."
            />
        </div>
    );
};

export default PaySuccess;